<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title><{:C('web_site_name')}>---后台管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/main.css"/>
    <script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/jquery.js"></script>

</head>
<body>
<div class="container clearfix" >
    <div class="sidebar-wrap" >
        <div class="sidebar-title">
            <h1><?php echo $first_top_name;?></h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
             <?php 
                foreach($nav_list as $top_key => $top_val){
                    
                    $show_display = '' ;
                    if($first_top_id ==  $top_val['id']){
                        $show_display = 'display:' ;
                    }else{
                        $show_display = 'display:none' ;    
                    }
                    foreach( $top_val['items'] as $two_key => $two_val){
                    if(!in_array($two_val['url'] , $url_data) && !$super_admin){
                        continue;
                    }
                    
            ?>
                <li style="<?php echo $show_display ;?>"  class="top_<?php echo $top_val['id'];?>">
                    <a href="javascript:void(0)" class="top">
                    <i class="icon-font">&#xe005;</i>
                    <?php echo $two_val['name'] ;?>
                    </a>
                    <ul class="sub-menu">
                    <?php 
                        if($two_val['items']){
                            foreach($two_val['items'] as $three_key => $three_val){
                                if(!in_array($three_val['url'] , $url_data) && !$super_admin){
                                    continue;
                                }
                    ?>
                    <li>
                    <cite></cite>
                    <a href="<?php echo U($three_val['url']);?>" target="rightFrame">
                    <?php echo $three_val['name'] ;?>
                    </a>
                    </li>
                    <?php } } ?>
                       
                    </ul>
                </li>
               <?php } } ?>
                
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap" >
     
    </div>
    <!--/main-->
</div>

<script>
$(function(){
    $(".top").each(function(){
            $(this).click(function(){
                $(this).siblings(".sub-menu").toggle("slow");
            });
        });
    $(".sidebar-wrap").height($("html").height());
});
</script>
